﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Data;
using System.ComponentModel;
using QuanLyRapChieuPhim.DAO;
using QuanLyRapChieuPhim.DTO;

namespace QuanLyRapChieuPhim.BUS
{
    class RapBUS
    {
        private RapDAO DAO = new RapDAO();

        public bool UpdateGioiHanTruocGioChieu(int _GioiHanTruocGioChieu)
        {
            return DAO.UpdateGioiHanTruocGioChieu(_GioiHanTruocGioChieu);
        }

        public bool AddGioiHanTruocGioChieu(int _GioiHanTruocGioChieu)
        {
            return DAO.AddGioiHanTruocGioChieu(_GioiHanTruocGioChieu);
        }

        public int GetGioiHanTruocGioChieu()
        {
            return DAO.GetGioiHanTruocGioChieu();
        }

        public BindingList<RapDTO> GetList()
        {
            return DAO.GetList();
        }

        public BindingList<RapDTO> GetList_QL()
        {
            return DAO.GetList_QL();
        }

        public BindingList<RapDTO> GetListLikeName_QL(string _Ten)
        {
            return DAO.GetListLikeName_QL(_Ten);
        }

        public BindingList<RapDTO> GetListLikeName_QL_DaXoa(string _Ten)
        {
            return DAO.GetListLikeName_QL_DaXoa(_Ten);
        }

        public BindingList<RapDTO> GetList_QL_DaXoa()
        {
            return DAO.GetList_QL_DaXoa();
        }

        public RapDTO GetFromId(int _Ma)
        {
            return DAO.GetFromId(_Ma);
        }

        public bool Delete(int _Ma)
        {
            return DAO.Delete(_Ma);
        }

        public bool UnDelete(int _Ma)
        {
            return DAO.UnDelete(_Ma);
        }

        public bool Add(RapDTO _DTO)
        {
            return DAO.Add(_DTO);
        }

        public bool CheckExists(int _Ma, string _Ten)
        {
            return DAO.CheckExists(_Ma, _Ten);
        }

        public bool Update(RapDTO _DTO)
        {
            return DAO.Update(_DTO);
        }
    }
}
